import dcImage from '@/assets/直流电阻测试仪.png';
import loopImage from '@/assets/回路电阻测试仪.png';
import insulationImage from '@/assets/绝缘电阻测试仪.png';
import infraredImage from '@/assets/红外成像仪.png';
import mechanicalImage from '@/assets/机械特性测试仪.png';
import dielectricImage from '@/assets/介质损耗测试仪.png';
import lightningImage from '@/assets/避雷器带电监测仪.png';
import relayImage from '@/assets/继保监测仪.png';
import { TesterType } from '@/types/tester';
import {
  dcResistance,
  loopResistance,
  insulation,
  infrared,
  mechanical,
  dielectric,
  lightning,
  relay
} from '@/modules/const';

type Tester = {
  key: TesterType;
  title: string;
  image: string;
  // 设备蓝牙名称
  blueName: string;
  // 设备编号
  code: string;
}

export const testerList: Tester[] = [
  {
    key: dcResistance,
    title: '直流电阻测试仪',
    image: dcImage ,
    blueName: 'ZLDZ',
    code: '01'
  },
  {
    key: loopResistance,
    title: '回路电阻测试仪',
    image: loopImage,
    blueName: 'HLDZ',
    code: '06',
  },
  {
    key: insulation,
    title: '绝缘电阻测试仪',
    image: insulationImage,
    blueName: 'JYDZ',
    code: '17',
  },
  {
    key: infrared,
    title: '红外成像仪',
    image: infraredImage,
    blueName: 'HWCX',
    code: '1C',
  },
  {
    key: mechanical,
    title: '机械特性测试仪',
    image: mechanicalImage,
    blueName: 'JXTX',
    code: '07',
  },
  {
    key: dielectric,
    title: '介质损耗测试仪',
    image: dielectricImage,
    // FIXME: 设备蓝牙名称待确认
    // blueName: 'JZSH',
    blueName: '',
    code: '05',
  },
  {
    key: lightning,
    title: '避雷器带电监测仪',
    image: lightningImage,
    blueName: 'BLQY',
    code: '03',
  },
  {
    key: relay,
    title: '继保监测仪',
    image: relayImage,
    blueName: 'JDBH',
    code: '1C',
  }
];
